package com.zf.wms.nservice.client.hystrix;

import com.zf.wms.nservice.client.RoleClient;
import com.zf.wms.nservice.dto.RoleDto;
import com.zf.wms.nservice.utils.ResultMap;
import org.springframework.stereotype.Component;

/**
 * Author：sl
 * Date：2019-11-04 11:21
 * Description：<描述>
 */
@Component
public class RoleClientHystrix implements RoleClient {

    @Override
    public ResultMap addRole(String roleName) {
        return ResultMap.error("添加失败");
    }

    @Override
    public ResultMap getRoleList(Integer pageNum, Integer pageSize) {
        return ResultMap.error("查询失败，请稍后重试");
    }

    @Override
    public ResultMap removeRoleById(Long roleId) {
        return ResultMap.error("删除失败，请稍后重试");
    }

    @Override
    public ResultMap modifyRoleById(RoleDto roleDto) {
        return ResultMap.error("更改失败，请稍后重试");
    }

    @Override
    public ResultMap getListByRoleName(Integer pageNum, Integer pageSize, String roleName) {
        return ResultMap.error("查询失败，请稍后重试");
    }
}
